/* eslint-disable */
export const helper = {
  formName: {
    title: '表单名称',
    content: '流程表单名称,一般与流程名称一致,如:差旅报销流程'
  },
  formType: {
    title: '表单分类',
    content: '流程表单分类,必须与流程的分类一致,如:财务类流程'
  },
  bbb: {
    title: 'range',
    content: '测试属性',
    type: 'switch'
  },
  filed: {
    title: '字段',
    content: '提交保存字段',
    showfun(fromInfo, element) {
      return false
      // if (fromInfo.designType !== '/buildquestionnaire.html' && element.dataIndex === undefined) {
      //   return true
      // } else return false
    }
  },
  formPrefix: {
    title: '流程编号前缀',
    content:
      '单据的流程编号的前缀,一般是流程拼音算字母大写(建议4~6字母),如：CLBX'
  },
  range: {
    title: 'range',
    content: '是否为范围选择',
    type: 'switch'
  },
  type: {
    title: '控件类型',
    content: '控件类型',
    type: 'controlType',
    showfun(fromInfo, data) {
      if (data.dragType === 'control') return true
      else return false
    }
  },
  showstops: {
    title: 'showstops',
    content: '是否显示间断点',
    type: 'switch'
  },
  min: {
    title: 'min',
    content: '最小值',
    type: 'number'
  },
  step: {
    title: 'step',
    content: '最大值',
    type: 'number'
  },
  max: {
    title: 'max',
    content: '步长',
    type: 'number'
  },
  formDesc: {
    title: '表单描述',
    content: '针对当前表单的功能详细描述'
  },
  labelTitle: {
    title: '标题',
    content: '控件的标题,一般是对应的字段'
  },
  defaultValue: {
    title: '默认值',
    content: '控件默认值'
  },
  defaultText: {
    title: '默认文本',
    content: '控件默认显示文本'
  },
  controlType: {
    title: '控件类型',
    content: '控件的类型',
    type: 'select',
    data: []
  },
  format: {
    title: '格式化串',
    content: '控件的格式化显示类型',
    type: 'select',
    data: [
      { value: 'yyyy-MM-DD', label: 'yyyy-MM-DD' },
      { value: 'yyyy-MM-DD HH:mm:ss', label: 'yyyy-MM-DD HH:mm:ss' },
      { value: 'yyyy', label: 'yyyy' },
      { value: 'yyyy-MM', label: 'yyyy-MM' }
    ]
  },
  fit: {
    title: 'fit',
    content: '当展示类型为图片的时候，设置图片如何适应容器框',
    type: 'select',
    data: [
      { value: 'fill', label: 'fill' },
      { value: 'contain', label: 'contain' },
      { value: 'cover', label: 'cover' },
      { value: 'none', label: 'none' },
      { value: 'scale-down', label: 'scale-down' }
    ]
  },
  shape: {
    title: 'shape',
    content: '设置头像的形状',
    type: 'select',
    data: [
      { value: 'circle', label: 'circle' },
      { value: 'square', label: 'square' }
    ]
  },
  timeformat: {
    title: '格式化串',
    content: '时间的格式化显示类型',
    type: 'select',
    data: [
      { value: 'h:mm:ss a', label: 'h:mm:ss a' },
      { value: 'h:mm a', label: 'h:mm a' }
    ]
  },
  minute: {
    title: '分钟倍数',
    content: '分钟倍数',
    type: 'select',
    data: [
      { value: 1, label: '1' },
      { value: 5, label: '5' },
      { value: 10, label: '10' }
    ]
  },
  second: {
    title: '秒的倍数',
    content: '秒的倍数',
    type: 'select',
    data: [
      { value: 1, label: '1' },
      { value: 5, label: '5' },
      { value: 10, label: '10' }
    ]
  },
  icon: {
    title: '图标选择',
    content: '图标',
    type: 'icon',
    showfun(fromInfo, data, key) {
      if (key === 'options' || data.options === undefined) {
        return true
      }
      return false
    }
  },
  bordermodel: {
    title: '边框模板',
    content: '边框模板类型',
    type: 'select',
    data: [
      { value: 0, label: '无模板' },
      { value: 1, label: '模板1' },
      { value: 2, label: '模板2' },
      { value: 3, label: '模板3' },
      { value: 4, label: '模板4' },
      { value: 5, label: '模板5' },
      { value: 6, label: '模板6' },
      { value: 7, label: '模板7' },
      { value: 8, label: '模板8' },
      { value: 9, label: '模板9' },
      { value: 10, label: '模板10' },
      { value: 11, label: '模板11' },
      { value: 12, label: '模板12' },
      { value: 13, label: '模板13' }
    ]
  },
  decorationmodel: {
    title: '挂件类型',
    content: '挂件类型',
    type: 'select',
    data: [
      { value: 0, label: '无挂件' },
      { value: 1, label: '挂件1' },
      { value: 2, label: '挂件2' },
      { value: 3, label: '挂件3' },
      { value: 4, label: '挂件4' },
      { value: 5, label: '挂件5' },
      { value: 6, label: '挂件6' },
      { value: 7, label: '挂件7' },
      { value: 8, label: '挂件8' },
      { value: 9, label: '挂件9' },
      { value: 10, label: '挂件10' },
      { value: 11, label: '挂件11' },
      { value: 12, label: '挂件12' }
    ]
  },
  iconclass: {
    title: '主题图标',
    content: '主题图标',
    type: 'icon'
  },
  iconcolor: {
    title: '图标颜色',
    content: '图标颜色',
    type: 'colorpicker'
  },
  titlecolor: {
    title: '主题颜色',
    content: '主题颜色',
    type: 'colorpicker'
  },
  tooltip_left: {
    title: ' tooltip对齐方式',
    content: 'tooltip对齐方式',
    type: 'select',
    data: [
      { value: 'left', label: '靠左' },
      { value: 'right', label: '靠右' },
      { value: 'center', label: '居中' }
    ]
  },
  axistype: {
    title: '轴类型',
    content: '轴类型',
    type: 'select',
    data: [
      { value: 'x', label: 'x轴' },
      { value: 'y', label: 'y轴' }
    ]
  },
  tooltip: {
    title: '是否显示tooltip',
    content: '是否显示tooltip',
    type: 'switch'
  },
  prefixicon: { title: '头部图标', content: '文本框头部图标', type: 'icon' },
  suffixicon: { title: '尾部图标', content: '文本框尾部图标', type: 'icon' },
  showwordlimit: {
    title: '显示字数',
    content: '是否显示字数',
    type: 'switch'
  },
  isPage: {
    title: '是否分页',
    content: '是否显示分页',
    type: 'switch'
  },
  password: {
    title: '是否密码',
    content: '是否密码',
    type: 'switch'
  },
  clearable: {
    title: 'clearable',
    content: '一键清空',
    type: 'switch'
  },
  allowcreate: {
    title: 'allowcreate',
    content: '是否可创建新的条目',
    type: 'switch',
    showfun(fromInfo, data) {
      return data.options.isSearch
    }
  },
  butType: {
    title: '按钮类型',
    content: '按钮类型',
    type: 'select',
    data: [
      { value: '', label: '' },
      { value: 'text', label: 'text' },
      { value: 'primary', label: 'primary' },
      { value: 'success', label: 'success' },
      { value: 'info', label: 'info' },
      { value: 'warning', label: 'warning' },
      { value: 'danger', label: 'danger' }
    ]
  },
  uptype: {
    title: '控件类型',
    content: '上传控件类型',
    type: 'select',
    data: [
      { value: 'file', label: '文件上传' },
      { value: 'img', label: '图片上传' },
      { value: 'arryimg', label: '多图片上传' }
    ]
  },
  butsize: {
    title: '控件尺寸',
    content: '控件尺寸',
    type: 'select',
    data: [
      { value: '', label: '默认' },
      { value: 'medium', label: '中等' },
      { value: 'small', label: '小型' },
      { value: 'mini', label: '超小' }
    ]
  },
  IsShowTitle: {
    title: 'IsShowTitle',
    content: '是否显示标题',
    type: 'switch'
  },
  activecolor: {
    title: '开启颜色',
    content: '开启时颜色',
    type: 'colorpicker'
  },
  inactivecolor: {
    title: '关闭颜色',
    content: '关闭时颜色',
    type: 'colorpicker'
  },
  tagattr: {
    title: '自定义属性',
    content: '自定义属性满足于未覆盖的控件属性和vue语法的支持'
  },
  placeholder: {
    title: '提示内容',
    content: '控件为空时显示的提示内容'
  },
  rows: {
    title: '行数',
    content: '多行文本显示的行数(控件的高度)',
    type: 'number'
  },
  minRows: {
    title: '最小行数',
    content: '多行文本最小行数',
    type: 'number'
  },
  maxRows: {
    title: '最大行数',
    content: '多行文本最大行数,超过显示滚动条',
    type: 'number'
  },
  describe: {
    title: '描述信息',
    content: '详细描述该字段的业务或备注说明'
  },
  formCode: {
    title: '表单编码',
    content: '表单编码'
  },
  panelist: {
    title: '选项面板',
    content: '如添加tab标签页，折叠面板项，步骤项等',
    type: 'panelist'
  },
  // layoutitemlist: {
  //   title: 'Layout布局设置',
  //   content: '添加Layout布局模块',
  //   type: 'layoutitemlist',
  //   showfun(fromInfo, data, key) {
  //     if (
  //       fromInfo.designType === '/buildquestionnaire.html' ||
  //       fromInfo.designType === '/buildscreenanalyse.html'
  //     ) {
  //       return false
  //     }
  //     return true
  //   }
  // },
  // layerlist: {
  //   title: '弹出层',
  //   content: '弹出层模块添加',
  //   type: 'layerlist',
  //   showfun(fromInfo, data, key) {
  //     if (
  //       fromInfo.designType === '/buildquestionnaire.html' ||
  //       fromInfo.designType === '/buildscreenanalyse.html'
  //     ) {
  //       return false
  //     }
  //     return true
  //   }
  // },
  // dataIndex: {
  //   title: '绑定字段',
  //   content: '绑定字段'
  // },
  title: {
    title: '标题名称',
    content: '清空标题名称将不显示列。'
  },
  buttons: {
    title: '按钮项',
    content: '按钮的集合',
    type: 'buttonlist'
  },
  dynamiclist: {
    title: '动态面板',
    content:
      '动态面板有分为很多层，方便切换，如各种事件和条件 可以控制动态面板的显示与隐藏',
    type: 'dynamiclist'
  },
  isRemote: {
    title: '选项',
    content: '选项的集合',
    type: 'selectoptionlist'
  },
  required: {
    title: '必填校验',
    content: '字段是否为必填',
    type: 'switch'
  },
  isMulty: {
    title: '可多选设置',
    content: '是否允许多选',
    type: 'switch'
  },
  isRowMulty: {
    title: '是否多行',
    content: '是否允许关联多行数据',
    type: 'switch'
  },
  multy: {
    title: '可多选设置',
    content: '配置支持多选功能',
    type: 'switch'
  },
  isshowtime: {
    title: '是否显示时分秒',
    content: '是否显示时分秒',
    type: 'switch'
  },
  disabled: {
    title: '是否只读',
    content: '是否只读',
    type: 'switch'
  },
  isSearch: {
    title: '可搜索设置',
    content: '控件是否支持搜索',
    type: 'switch'
  },
  isEdit: {
    title: '是否可编辑',
    content: '控件是否可编辑',
    type: 'switch'
  },
  minDate: {
    title: '最小日期/时间',
    content: '日期控件的最小日期/时间'
  },
  maxDate: {
    title: '最大日期/时间',
    content: '日期控件的最小日期/时间'
  },
  labelwidth: {
    title: '标签宽度',
    content: '控制标签宽度',
    type: 'number'
  },
  fromid: {
    title: '表单Id',
    content: '弹出表单ID'
  },
  dialogwidth: {
    title: '层宽度',
    content: '弹出层宽度',
    showfun(fromInfo) {
      if (fromInfo.designType !== '/buildscreenanalyse.html') {
        return true
      } else {
        return false
      }
    }
  },
  isadapt: {
    title: '自定义布局宽高',
    content: '自定义布局宽高主要针对大屏展示宽高',
    type: 'switch',
    showfun(fromInfo) {
      if (fromInfo.designType === '/buildscreenanalyse.html') {
        return true
      } else {
        return false
      }
    }
  },
  backgroundurl: {
    title: '背景图',
    content: '背景图'
  },
  fwidth: {
    title: '宽度',
    content: '表单宽度',
    type: 'number',
    showfun(fromInfo) {
      if (fromInfo.isadapt === false) {
        return true
      } else {
        return false
      }
    }
  },
  BusinessMoudle: {
    title: '自动编码前缀',
    content: '自动编码前缀'
  },
  fheight: {
    title: '高度',
    content: '表单高度',
    type: 'number',
    showfun(fromInfo) {
      if (fromInfo.isadapt === false) {
        return true
      } else {
        return false
      }
    }
  },
  dataLength: {
    title: '数据长度',
    content: '限制控件可输入的字符长度',
    type: 'number'
  },
  lg: {
    title: '栅格',
    content: '栅格比例',
    type: 'selectSpan',
    showfun(fromInfo, element) {
      if (fromInfo.deviceDesignType === 'pc' && element.width === undefined) {
        return true
      } else {
        return false
      }
    }
  },
  md: {
    title: '栅格',
    content: '栅格比例',
    type: 'selectSpan',
    showfun(fromInfo, element) {
      if (fromInfo.deviceDesignType === 'pad' && element.width === undefined) {
        return true
      } else {
        return false
      }
    }
  },
  xs: {
    title: '栅格',
    content: '栅格比例',
    type: 'selectSpan',
    showfun(fromInfo, element) {
      if (
        fromInfo.deviceDesignType === 'mobile' &&
        element.width === undefined
      ) {
        return true
      } else {
        return false
      }
    }
  },
  spans: {
    title: '占整行比例',
    content: '占整行的列数',
    type: 'select',
    data: [
      { value: '2', label: '1/6' },
      { value: '4', label: '2/6' },
      { value: '6', label: '3/6' },
      { value: '8', label: '4/6' },
      { value: '10', label: '5/6' },
      { value: '12', label: '6/6' }
    ]
  },
  level: {
    title: '指定层级部门',
    content: '指定层级部门，默认为10000001（深迈）'
  },
  lang: {
    title: '语言类型',
    content: '流程的语言类型',
    type: 'select',
    data: [
      { value: 'cn', label: '中文' },
      { value: 'en', label: '英文' }
    ]
  },
  rowSpan: {
    title: '占整行数',
    content: '如占两行，三行',
    type: 'number'
  },
  modeltype: {
    title: '控件类型',
    content: '控件类型如选日期，选月份，选星期，选日期范围',
    type: 'select',
    data: [
      { value: 'date', label: '选日期' },
      { value: 'year', label: '选年' },
      { value: 'month', label: '选月份' },
      { value: 'week', label: '选星期' },
      { value: 'range', label: '日期范围' }
    ]
  },
  ruleslist: {
    type: 'ruleslist',
    title: '正则验证',
    content: '设置表单提交数据正则验证！'
  },
  htmlContent: {
    title: '自定义Html区域',
    content: '设置自定义的Html区域'
  },
  width: {
    title: '宽度',
    content: '控件的宽度，默认单位：px,可以添加%和calc'
  },
  height: {
    title: '高度',
    content: '控件的高度，默认单位：px,可以添加%和calc'
  },
  maxShow: {
    title: '最大显示条目',
    content: '控件可显示元素的最大数目',
    type: 'number'
  },
  newData: {
    title: '新增显示数据',
    content: ''
  },
  remote: {
    title: '远程加载数据',
    content: '通过远程接口加载数据'
  },
  companyCode: {
    title: '指定公司编码',
    content: '指定公司编码，如：1000,1001'
  },
  prefix: {
    title: '前缀',
    content: '前缀开头'
  },
  suffix: {
    title: '后缀',
    content: '后缀结尾'
  },
  Language: {
    title: '指定语言代码',
    content: '语言代码，如：1033-英文；2052-中文'
  },
  showUserid: {
    title: '显示用户ID',
    content: '是否显示用户ID'
  },
  filedList: {
    title: '显示字段',
    content: '显示字段',
    type: 'showField',
    showfun(fromInfo, data) {
      if (
        (data.type === 'datarelevance' || data.type === 'queryrelevance') &&
        fromInfo.designType !== '/buildquestionnaire.html'
      ) {
        return true
      } else {
        return false
      }
    }
  },
  assignFiledList: {
    title: '填充规则设置',
    content: '填充规则设置',
    type: 'assignFiledList',
    showfun(fromInfo, data) {
      if (
        (data.type === 'datarelevance' || data.type === 'queryrelevance') &&
        fromInfo.designType !== '/buildquestionnaire.html'
      ) {
        return true
      } else {
        return false
      }
    }
  },
  wherelist: {
    title: '过滤条件设置',
    content: '过滤条件设置',
    type: 'wherelist',
    showfun(fromInfo, data) {
      if (
        (data.type === 'datarelevance' ||
          data.type === 'queryrelevance' ||
          data.type === 'gridlist') &&
        fromInfo.designType !== '/buildquestionnaire.html'
      ) {
        return true
      } else {
        return false
      }
    }
  },
  sourceApi: {
    title: '数据源API',
    content: '设置数据源的API',
    type: 'selectApi',
    showfun(fromInfo, data) {
      if (
        (data.type === 'datarelevance' ||
          data.type === 'queryrelevance' ||
          data.type === 'gridlist') &&
        fromInfo.designType !== '/buildquestionnaire.html'
      ) {
        return true
      } else {
        return false
      }
    }
  },
  slotsHtml: {
    title: 'html',
    content: '自定义显示html'
  },
  searchPlane: {
    title: '搜索表单id',
    content:
      '搜索表单元素id，表格会自动获取该元素里面的所有输入控件的值作为参数传递给列表的查询api'
  },
  isplain: {
    title: 'plain',
    content: '是否朴素按钮',
    type: 'switch'
  },
  isbutton: {
    title: 'isbutton',
    content: '是否按钮风格',
    type: 'switch'
  },
  collapsetags: {
    title: 'collapse-tags',
    content: '多选时是否将选中值按文字的形式展示',
    type: 'switch'
  },
  columns: {
    title: '设置展示列',
    content: '设置展示列',
    type: 'columnslist',
    showfun(fromInfo, data) {
      if (
        data.type === 'gridlist' &&
        fromInfo.designType !== '/buildquestionnaire.html'
      ) {
        return true
      } else {
        return false
      }
    }
  },
  isround: {
    title: 'round',
    content: '是否圆角按钮',
    type: 'switch'
  },
  iscircle: {
    title: 'circle',
    content: '是否圆形按钮',
    type: 'switch'
  },
  enableChoose: {
    title: '可选择',
    content: '允许选择，显示勾选框',
    type: 'switch'
  },
  showNo: {
    title: '序号',
    content: '显示序号字段',
    type: 'switch'
  },
  maxLevel: {
    title: '部门最大层级',
    content: '显示层级，1，2，3，4，5，6最大6层'
  },
  align: {
    title: '排列方式',
    content: '横向排列对齐方式',
    type: 'select',
    data: [
      { value: 'left', label: '靠左' },
      { value: 'center', label: '居中' },
      { value: 'right', label: '靠右' }
    ]
  },
  layertype: {
    title: '弹出方式',
    content: '设置那种弹出方式',
    type: 'select',
    data: [
      { value: 'left', label: '靠左' },
      { value: 'center', label: '居中' },
      { value: 'right', label: '靠右' },
      { value: 'top', label: '靠上' },
      { value: 'down', label: '靠下' }
    ]
  },
  preClickFunName: {
    title: '按钮排列',
    content: '按钮横向排列对齐方式'
  },
  startDate: {
    title: '开始日期',
    type: 'date'
  },
  endDate: {
    title: '结束日期',
    type: 'date'
  },
  isWhite:{
    title: '白名单',
    type: 'select',
    data:[
      {value: '是',lable: '是'},
      {value: '否',lable: '否'}
    ]
  },
  isInput:{
    title: '是否启用',
    type: 'select',
    data:[
      {value: '启用',lable: '启用'},
      {value: '停用',lable: '停用'}
    ]
  },
  isModify:{
    title: '允许修改',
    type: 'select',
    data:[
      {value: '是',lable: '是'},
      {value: '否',lable: '否'}
    ]
  },
  modifyEndDate: {
    title: '提交截止日期',
    type: 'date'
  },
  showEndDate: {
    title: '显示截止日期',
    type: 'date'
  },
  isNetconfirm:{
    title: '是否网上确认',
    type: 'select',
    data:[
      {value: '是',lable: '是'},
      {value: '否',lable: '否'}
    ]
  }
}
